package com.handong.handserialprogram.model.entities;

import android.text.TextUtils;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Created by userKey on 2017/8/6.
 */

public class UploadTaskEntity {

    private String name = "";
    private ArrayList<PersonEntity> criminal;
    private String route = "";
    private String car = "";
    private ArrayList<PersonEntity> police;
    private String describe = "";

    public String geteId() {
        return eId;
    }

    public void seteId(String eId) {
        this.eId = eId;
    }

    private String eId="";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ArrayList<PersonEntity> getCriminal() {
        return criminal;
    }

    public void setCriminal(ArrayList<PersonEntity> criminal) {
        this.criminal = criminal;
    }

    public String getRoute() {
        return route;
    }

    public void setRoute(String route) {
        this.route = route;
    }

    public String getCar() {
        return car;
    }

    public void setCar(String car) {
        this.car = car;
    }

    public ArrayList<PersonEntity> getPolice() {
        return police;
    }

    public void setPolice(ArrayList<PersonEntity> police) {
        this.police = police;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public boolean isEmpty() {
        return TextUtils.isEmpty(name) && (criminal == null || criminal.isEmpty()) && (police == null || police.isEmpty())
                && TextUtils.isEmpty(route) && TextUtils.isEmpty(car) && TextUtils.isEmpty(describe);
    }

    @Override
    public String toString() {
        return "name:" + name + ", criminal:" + criminal + ", police:" + police;
    }
}
